package com.wyl.pmd.rule.design;

public class CyclomaticComplexity {

	void highCyclo() { // Cyclo = 10: reported!
		int x = 0, y = 2, t = 0;
		boolean a = false, b = true, d = false;

		if (a && (y == 1 ? b : true)) { // +3
			if (y == x) { // +1
				while (true) { // +1
					if (x++ < 20) { // +1
						break; // +1
					}
				}
			} else if (y == t && !d) { // +2
				x = a ? y : x; // +1
			} else {
				x = 2;
			}
		}
	}

}
